package org.elfen.redis.service;

import org.elfen.common.Token;

/**
 * 提供redis操作的服务
 */
public interface RedisService {

	boolean saveToken2Redis(Token token);

	void deleteToken2Redis(String tokenKey);

	Token selectToken2Redis(String tokenKey);

	boolean saveData2Redis(String key, Object entity);

	String selectData2Redis(String key);

	String subscribe(String sysLogTopic);

	void sendMessage2Topic(String topic, String jsonString);

}
